//
//  CategoryModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2022/8/2.
//

import UIKit
import ObjectMapper
class CategoryModel: Mappable {
    var code: String?
    var msg: String?
    var data: [CategoryListModel]?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
    }
    
}

class CategoryListModel: Mappable {
    var id: Int?
    var createdTime: String?
    var delFlag: String?
    var name: String?
    var nameEn: String?
    var nameSc: String?
    var pid: Int?
    var orderNum: String?
    var levelNum: String?
    var path: String?
    var selectIndex = 0
    var width: Double = 0
    
    func mapping(map: Map) {
        id <- map["id"]
        createdTime <- map["createdTime"]
        delFlag <- map["delFlag"]
        name <- map["name"]
        nameEn <- map["nameEn"]
        nameSc <- map["nameSc"]
        pid <- map["pid"]
        orderNum <- map["orderNum"]
        levelNum <- map["levelNum"]
        path <- map["path"]
    }
    required init?(map: Map) {
    }
    
    init () {
        
    }
}
